#define _CRT_SECURE_NO_WARNINGS 1

#include"Stack.h"

int main()
{
	ST ps;
	StackInit(&ps);
	StackPush(&ps, 1);
	StackPush(&ps, 2);
	StackPush(&ps, 3);
	StackPush(&ps, 4);
	StackPush(&ps, 5);
	printf("%d ", StackTop(&ps));
	StackPop(&ps);
	printf("%d ", StackTop(&ps));
	StackPop(&ps);
	printf("\n");
	while (!StackEmpty(&ps))
	{
		printf("%d ", StackTop(&ps));
		StackPop(&ps);
	}

	StackDestroy(&ps);
	return 0;
}